package com.burgeon.backend.SHOP.mappers;

import com.burgeon.backend.SHOP.entity.CouponType;
import com.burgeon.backend.SHOP.entity.IndexCoupon;
import com.burgeon.backend.entity.Coupon;

import java.util.List;

public interface AppCouponMapper {

    String userCouponCount(String phone,String sdate,String token);

    Coupon findCouponById(String id);

    Integer useCoupon(String id);

    List<Coupon> findCouponByPhone(String phone,String token);

    Integer addCoupon(Coupon coupon);

    CouponType findCouponTypeById(String tid);

    IndexCoupon findIndexCouponById(String id);
    //创建领取记录
    Integer createIndexCouponRecord(String cid,String uid,String token);

    List<IndexCoupon> showIndexCoupon(String token);

    String showIndexCouponRecord(String uid,String cid,String token);

    Integer findGiftIntegral(String cid);

    Coupon getCouponDetails(String token, String code);
}
